//
//  Activity.m
//  viabook
//
//  Created by Yong Uk Lee on 11. 5. 16..
//  Copyright 2011 VI-NYL. All rights reserved.
//

#import "RootViewController.h"
#import "Activity.h"

@implementation Activity

- (id)init
{
    self = [super init];
    if ( self ) {
        NSLog( @"init" );
        
    }
    return self;
}
-(void)viewDidLoad{
     [super viewDidLoad];
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    
    if ( self ) {
        //기본값으로 적용
        [self.view setAutoresizesSubviews:NO];
        [self.view setFrame:CGRectMake(0, 0, 320, 460)];
    }
    
    return self;
}

- (void)setStatusBarHidden:(BOOL)flag
{
    [[RootViewController sharedContorller] setStatusBarHidden:flag];
}

- (void)dealloc
{
    NSLog( @"dealloc" );
    
    [super dealloc];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
    NSLog( @"shouldAutorotateToInterfaceOrientation : %i", toInterfaceOrientation );
    
    return ( UIInterfaceOrientationIsPortrait(toInterfaceOrientation) ) ? NO : YES;
}

@end
